package com.factory;

import com.pant.factory.PantFactory;
import com.shirt.factory.ShirtFactory;

public class FactoryProducer {
    public static AbstractClothFactory getFactory(String choice){
        if(choice.equalsIgnoreCase("SHIRT")){
            return new ShirtFactory();
        } else if(choice.equalsIgnoreCase("PANT")){
            return new PantFactory();
        }
        return null;
    }
}
